#ifndef PEER_H
#define PEER_H

#include "peer.h"
#include "connection.h"
#include "server.h"
#include <QtNetwork>

class Peer
{

public:
    Peer();

signals:
    void peerConnected ();
    void peerDisconnected ();

public slots:
    void incomingConnection (QTcpSocket *socket);
    void outgoingConnection (const QString &addr, const QString &port);

    void newPeer ();
    void dropPeer ();
    void sendMessage ();

private slots:

private:
    Connection *conn;
    Server *server;
    QVector<Connection *> iConnList;
    QVector<Connection *> oConnList;
};

#endif // PEER_H
